package method;

import java.util.Arrays;

public class MethodTest {


    public int test1(String... args) {
        System.out.println(Arrays.toString(args));

        return args.length;
    }


    public static void main(String[] args) {
        MethodTest methodTest = new MethodTest();

        System.out.println(methodTest.test1("a", "b", "c", "d"));

        String[] a = {"a", "a", "a", "a", "a"};
        System.out.println(methodTest.test1(a));
    }
}
